#ifndef __HUART_H__
#define __HUART_H__

#include <stdint.h>

int uart_init(void);
int uart_deinit(void);

int uart_configure(uint32_t baudrate, uint8_t stop_bit, uint8_t parity_type, uint8_t data_bits);

int uart_send(uint8_t *data, uint16_t len);
int uart_recv(uint8_t *data, uint16_t len);

void uart_send_callback(uint8_t *data, uint16_t len);
void uart_recv_callback(uint8_t *data, uint16_t len);

#endif
